import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/model-base',
    component: RouterView,
    name: 'model-base',
    meta: { title: '模型库' },
    redirect: '/model-base/list',
    children: [
      {
        path: '/model-base/list',
        component: () => import('@/views/customer/model-base/list/index.vue'),
        meta: { title: '模型库' },
        redirect: '/model-base/list/public-model',
        children: [
          {
            path: '/model-base/list/public-model',
            component: () => import('@/views/customer/model-base/list/public-model/index.vue'),
            meta: { title: '公开模型' }
          },
          {
            path: '/model-base/list/collect-model',
            component: () => import('@/views/customer/model-base/list/collect-model/index.vue'),
            meta: { title: '我的收藏' }
          }
        ]
      },
      {
        path: '/model-base/list/public-model/public-model-datail/:id',
        component: () => import('@/views/customer/model-base/public-model-detail/index.vue'),
        meta: { title: '模型详情' }
      }
    ]
  }
]

export default routes
